package com.indusfo.spc.client.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.indusfo.spc.client.pojo.ClientRepair;
import com.indusfo.spc.common.pojo.BasePojo;

/**
 * 客户端不良明细
 * 
 * @author zhengd
 *
 */
public interface ClientRepairMapper {
	/**
	 * 查询未进站批次
	 * 
	 * @return ClientRepair
	 */
	List<ClientRepair> queryNoEntryBatch(BasePojo basePojo);
	
	/**
	 * 查询未进站批次数量
	 * 
	 * @return Integer
	 */
	Integer countQueryNoEntryBatch();

	/**
	 * 查询已进站批次
	 * 
	 * @return ClientRepair
	 */
	List<ClientRepair> queryArrivalBatch(@Param("stationId") Integer stationId);

	/**
	 * 查询返修基础信息
	 * 
	 * @param batchCode
	 * @return ClientRepair
	 */
	ClientRepair queryRepair(@Param("batchCode") String batchCode);

	/**
	 * 根据工位ID和批号查询对应的工序
	 * 
	 * @param stationId
	 * @param batchCode
	 * @return
	 */
	Integer selectProIdByStationIdAndBatchCode(@Param("stationId") Integer stationId, @Param("batchCode") String batchCode);

}
